package com.company.cloud.product.modules.mgr.controller.req;

import com.company.cloud.common.bean.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class CategoryInfoSaveParam extends BaseParam {

    @ApiModelProperty(value = "公司编号")
    private String companyNo;

    @ApiModelProperty(value = "名称", required = true)
    @NotEmpty(message = "参数组不能为空")
    private String name;

    @ApiModelProperty(value = "图片")
    private String img;


    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer orders = 0;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "上级分类(0顶级分类)", required = true)
    @NotNull(message = "#上级分类不能为空")
    private Integer parentId = 0;

    @ApiModelProperty(value = "商品配置分类", required = true)
    @NotNull(message = "#商品配置分类不能为空")
    private Integer configId;

    @ApiModelProperty(value = "入驻须知")
    private String instructions;

    @ApiModelProperty(value = "树路径")
    private String treePath;

    @ApiModelProperty(value = "层级")
    private Integer grade;

}
